from django.db import models
#
# # Create your models here.
#
#
# class Person(models.Model):
#
#     SHIRT_SIZES = [
#         ('S', 'Small'),
#         ('M', 'Medium'),
#         ('L', 'Large'),
#     ]
#     name = models.CharField(max_length=60,default="黄本贵")
#     shirt_size = models.CharField(max_length=1, choices=SHIRT_SIZES)
#
# class Runner(models.Model):
#     MedalType = models.TextChoices("1", "2")
#     name = models.CharField(max_length=60)
#     medal = models.CharField(blank=True, choices=MedalType, max_length=10)
#
# class Manufacturer(models.Model):
#     name = models.CharField(verbose_name='制造者',max_length=100)
#
#
# class Car(models.Model):
#     manufacturer = models.ForeignKey(Manufacturer, on_delete=models.CASCADE)
#     car_name = models.CharField(verbose_name='车辆名称',max_length=100)
#
#
# class Publication(models.Model):
#     title = models.CharField(max_length=30)
#
#     class Meta:
#         ordering = ["title"]
#
#     def __str__(self):
#         return self.title
#
#
# class Article(models.Model):
#     headline = models.CharField(max_length=100)
#     publications = models.ManyToManyField(Publication)
#
#     class Meta:
#         ordering = ["headline"]
#
#     def __str__(self):
#         return self.headline
#
# class ZiDuan(models.Model):
#     YEAR_IN_SCHOOL_CHOICES = {
#         "FR": "Freshman",
#         "SO": "Sophomore",
#         "JR": "Junior",
#         "SR": "Senior",
#         "GR": "Graduate",
#     }
#     name = models.CharField(max_length=100,help_text="输入姓名，不能重复哦宝儿",
#                             unique= True, verbose_name='姓名',blank= True)
#     grade = models.CharField(max_length=2, choices=YEAR_IN_SCHOOL_CHOICES)
#     bool = models.BooleanField(default=False)
#     date = models.DateField(auto_now_add=True)
#     datetime = models.DateTimeField(auto_now_add=True)
#     email = models.EmailField(max_length=100)
#     file = models.FileField(upload_to="files")



class DesignModel(models.Model):
    name = models.CharField(max_length=100,help_text="输入姓名，不能重复哦宝儿",
                unique= True, verbose_name='姓名',blank= True)
    class Meta:
        verbose_name = "design"
        verbose_name_plural = "design"

    def __str__(self):
        return self.name